/*
 * Poster.cpp
 *
 *  Created on: Oct 13, 2012
 *      Author: Denis
 */

#include "Poster.h"
#include "HttpPostExample.h"

using namespace Osp::App;

Poster::Poster() {
	AppLog("Poster()");
}

Poster::~Poster() {
	AppLog("~Poster()");
}

Application*
Poster::CreateInstance(void) {
	AppLog("CreateInstance");
	return new Poster();
}

bool
Poster::OnAppInitializing(Osp::App::AppRegistry& appRegistry) {
	HttpPostExample* sample = new HttpPostExample();
	sample -> SendPostRequest();
	AppLog("OnAppInitializing");
}

bool
Poster::OnAppTerminating(Osp::App::AppRegistry& appRegistry, bool forcedTermination) {
	AppLog("OnAppTerminating");
}

void
Poster:: OnForeground(void) {
	AppLog("OnForeground");
}

void
Poster::OnBackground(void) {
	AppLog("OnBackground");
}

void
Poster::OnLowMemory(void) {
	AppLog("OnLowMemory");
}

void
Poster::OnBatteryLevelChanged(Osp::System::BatteryLevel batteryLevel) {
	AppLog("OnBatteryLevelChanged");
}
